package com.lovo.controller;


import com.lovo.bean.User;
import com.lovo.service.IUserService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author lovo
 * @since 2022-09-21
 */
@RestController
@RequestMapping("hd/user")
public class UserController {

    @Autowired
    IUserService service;

    @GetMapping("login/{name}/{pwd}")
    public User login(@PathVariable("name") String name, @PathVariable("pwd") String pwd) {


        return service.login(name, pwd);
    }


}
